package main

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()
	data := map[string]interface{}{
		"name": "zhangsan",
		"age":  18,
	}
	r.GET("/", func(c *gin.Context) {
		c.JSON(http.StatusOK, data)
	})
	r.Run(":9090")
}
